Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install newer rust version #1145

Merged
merged 2 commits into from
Jul 24, 2024
Merged

Install newer rust version #1145

merged 2 commits into from
Jul 24, 2024

Conversation

mthalman
Copy link
Member

Certain Arm32 Helix builds are broken with the following error:

#10 216.6   × Building wheel for cryptography (pyproject.toml) did not run successfully.
#10 216.6   │ exit code: 1
#10 216.6   ╰─> [13 lines of output]
#10 216.6       Running `maturin pep517 build-wheel -i /usr/bin/python3 --compatibility off`
#10 216.6       📦 Including license file "/tmp/pip-install-9tau84p3/cryptography_107648dceb1e46fe97aba4a45136dbe9/LICENSE"
#10 216.6       📦 Including license file "/tmp/pip-install-9tau84p3/cryptography_107648dceb1e46fe97aba4a45136dbe9/LICENSE.APACHE"
#10 216.6       📦 Including license file "/tmp/pip-install-9tau84p3/cryptography_107648dceb1e46fe97aba4a45136dbe9/LICENSE.BSD"
#10 216.6       🍹 Building a mixed python/rust project
#10 216.6       🔗 Found pyo3 bindings with abi3 support for Python ≥ 3.7
#10 216.6       🐍 Not using a specific python interpreter
#10 216.6       📡 Using build options features, locked from pyproject.toml
#10 216.6       error: package `cryptography-x509-verification v0.1.0 (/tmp/pip-install-9tau84p3/cryptography_107648dceb1e46fe97aba4a45136dbe9/src/rust/cryptography-x509-verification)` cannot be built because it requires rustc 1.65.0 or newer, while the currently active rustc version is 1.64.0
#10 216.6       💥 maturin failed
#10 216.6         Caused by: Failed to build a native library through cargo
#10 216.6         Caused by: Cargo build finished with "exit status: 101": `env -u CARGO CARGO_ENCODED_RUSTFLAGS="-C\u{1f}target-feature=-crt-static" PYO3_ENVIRONMENT_SIGNATURE="cpython-3.10-64bit" PYO3_PYTHON="/usr/bin/python3" PYTHON_SYS_EXECUTABLE="/usr/bin/python3" "cargo" "rustc" "--features" "pyo3/abi3-py37" "--message-format" "json-render-diagnostics" "--locked" "--manifest-path" "/tmp/pip-install-9tau84p3/cryptography_107648dceb1e46fe97aba4a45136dbe9/src/rust/Cargo.toml" "--release" "--lib"`
#10 216.6       Error: command ['maturin', 'pep517', 'build-wheel', '-i', '/usr/bin/python3', '--compatibility', 'off'] returned non-zero exit status 1
#10 216.6       [end of output]

This is the key bit of info from that: requires rustc 1.65.0 or newer, while the currently active rustc version is 1.64.0.

This only occurs in Arm32 builds because some change must have occurred for the Arm32 version of the cryptography package that requires the wheel to be built and has new dependencies than before.

@jkoritzinsky - This is somewhat related to your changes in #1142. The reason for your build failure there is due to missing dependencies because of the need to compile the wheel. Once those are resolved, the build would run into this error so you'll need to incorporate these changes.

@mthalman mthalman merged commit 32881c7 into dotnet:main Jul 24, 2024
44 checks passed
@mthalman mthalman deleted the rust-install branch July 24, 2024 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants